import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import actions from './actions'
import getters from './getters'
import mutations from './mutations'
import user from './module/user'
import tab from './module/tab'
Vue.use(Vuex)
/**
 * 创建vuex实例
 * @type {Vuex.store}
 */
export default new Vuex.Store({
  state,
  actions,
  getters,
  mutations,
  modules: {
    user,
    tab
  }
})
